package com.googlecode.java_cl_parser;

import junit.framework.Assert;
import org.junit.Test;

@CLIEntry(
		nickName = "run",
		description = "I do lot's of things",
		version = "1.0"
)
public class Verbose
{
	@CLIOption(
		name = "tc",
		longName = "thread-count",
		valueType = CLIOption.value_type.required,
		defaultValue = "1"
	)
	public void setThreadCount(int count)
	{
	}

	@CLIOption(
			name = "tc1",
			longName = "thread-count1",
			valueType = CLIOption.value_type.not_allowed
	)
	public void setThreadCount2(int count)
	{
	}

	@CLIOption(
			name = "tc2",
			longName = "thread-count1-context-verified-and-sealed",
			valueType = CLIOption.value_type.not_allowed
	)
	public void setThreadCoun1(int count)
	{
	}

	@CLIMain
	public void main()
	{
	}

	@Test
	public void testShortOptions() throws Exception
	{
		Verbose basicTest = new Verbose();
		CommonsCLILauncher.mainWithInstance(basicTest, new String[]{"-v"});
	}

	@Test
	public void testLongOptions() throws Exception
	{
		Verbose basicTest = new Verbose();
		CommonsCLILauncher.mainWithInstance(basicTest, new String[]{"--verbose"});
	}
}